import request from '@/common/js/request.js';

export default {


	// 新增预约
	addOrder(data) {
		return request({
			url: '/order/add',
			method: 'POST',
			// isLogin: true,
			data
		});
	},


	// 查看预约列表
	getlistOrder(data) {
		return request({
			url: '/order/list',
			method: 'POST',
			// isLogin: true,
			data
		});
	},


	// 查看流程
	getOrderProcess(data) {
		return request({
			url: '/order/process',
			method: 'POST',
			data
		});
	},


	// 确认预约
	confirmOrder(data) {
		return request({
			url: '/order/confirm-order',
			method: 'POST',
			data
		});
	},


	// 取消预约
	cancelOrder(data) {
		return request({
			url: '/order/cancel-order',
			method: 'POST',
			data
		});
	},


	// 有成交意向
	haveIntention(data) {
		return request({
			url: '/order/have-intention',
			method: 'POST',
			data
		});
	},

	// 确认到店
	confirmArrive(data) {
		return request({
			url: '/order/confirm-arrive',
			method: 'POST',
			data
		});
	},

	// 确认接诊
	clinicalReception(data) {
		return request({
			url: '/order/clinical-reception',
			method: 'POST',
			data
		});
	},

	// 结束就诊
	endOfVisit(data) {
		return request({
			url: '/order/end-of-visit',
			method: 'POST',
			data
		});
	},


	// 确认缴费
	confirmPayment(data) {
		return request({
			url: '/order/confirm-payment',
			method: 'POST',
			data
		});
	},

	//确认离店
	confirmLeave(data) {
		return request({
			url: '/order/confirm-leave',
			method: 'POST',
			data
		});
	},


	// 查看患者预约记录
	getOrderUserList(data) {
		return request({
			url: '/order/user-list',
			method: 'POST',
			data
		});
	},

	// 查看患者就诊记录
	getOrderUserVisitList(data) {
		return request({
			url: '/order/user-visit-list',
			method: 'POST',
			data
		});
	}

};